package com.huynhchihieu.service;

import java.util.List;
import java.util.Map;

public interface GenericService<T> {
	  public  T create(T t);
	    public   T find(Class<T> type,Object id);
	    public   T update(T t);
	    public void delete(Class<T> type,Object id);
	    public List findWithNamedQuery(String queryName);
	    public List findWithNamedQuery(String queryName,int resultLimit);
	    public List findWithNamedQuery(String namedQueryName, Map parameters);
	    public List findWithNamedQuery(String namedQueryName, Map parameters,int resultLimit);

}
